# -*- coding: utf-8 -*-
# @Time         : 15:46 2025/2/26
# @Author       : Chris
# @Description  :
from enum import IntEnum
from .._models import NickedIntEnum


class ProductType(NickedIntEnum):
    """
    商品类型枚举
    """
    NORMAL = (2, "普通商品")
    """普通商品"""

    INSPECTED = (0, "已验货")
    """已验货"""

    INSPECTION_ASSURED = (10, "验货宝")
    """验货宝"""

    BRAND_AUTHORIZED = (16, "品牌授权")
    """品牌授权"""

    XIANYU_SELECT = (19, "闲鱼严选")
    """闲鱼严选"""

    XIANYU_SPECIAL = (24, "闲鱼特卖")
    """闲鱼特卖"""

    BRAND_BARGAIN = (26, "品牌捡漏")
    """品牌捡漏"""


class Industry(NickedIntEnum):
    MOBILE = (1, "手机")
    """手机"""

    FASHION = (2, "潮品")
    """潮品"""

    APPLIANCE = (3, "家电")
    """家电"""

    INSTRUMENT = (8, "乐器")
    """乐器"""

    DIGITAL_3C = (9, "3C数码")
    """3C数码"""

    LUXURY = (16, "奢品")
    """奢品"""

    MATERNITY = (17, "母婴")
    """母婴"""

    COSMETICS = (18, "美妆个护")
    """美妆个护"""

    ANTIQUE_JEWELRY = (19, "文玩/珠宝")
    """文玩/珠宝"""

    GAMING = (20, "游戏电玩")
    """游戏电玩"""

    HOME = (21, "家居")
    """家居"""

    VIRTUAL_GAME = (22, "虚拟游戏")
    """虚拟游戏"""

    ACCOUNT_RENTAL = (23, "租号")
    """租号"""

    BOOK = (24, "图书")
    """图书"""

    COUPON = (25, "卡券")
    """卡券"""

    FOOD = (27, "食品")
    """食品"""

    TRENDY_TOYS = (28, "潮玩")
    """潮玩"""

    USED_CAR = (29, "二手车")
    """二手车"""

    PET_PLANT = (30, "宠植")
    """宠植"""

    CRAFT_GIFT = (31, "工艺礼品")
    """工艺礼品"""

    CAR_SERVICE = (33, "汽车服务")
    """汽车服务"""

    OTHER = (99, "其他")
    """其他"""


class FlashSaleType(NickedIntEnum):
    """
    闲鱼特卖类型枚举
    """
    UNDEFINED = (0, "未定义")
    """未定义"""

    # 仅闲鱼特卖类型可用
    EXPIRING = (1, "临期")
    """临期"""

    LONELY = (2, "孤品")
    """孤品"""

    OUT_OF_SIZE = (3, "断码")
    """断码"""

    MINOR_DEFECT = (4, "微瑕")
    """微瑕"""

    OVERSTOCK = (5, "尾货")
    """尾货"""

    OFFICIAL_REFURBISHED = (6, "官翻")
    """官翻"""

    BRAND_NEW = (7, "全新")
    """全新"""

    LUCKY_BAG = (8, "福袋")
    """福袋"""

    OTHER = (99, "其他")
    """其他"""

    # 仅品牌捡漏类型可用
    MINOR_DEFECT_BRAND = (2601, "微瑕")
    """微瑕"""

    EXPIRING_BRAND = (2602, "临期")
    """临期"""

    CLEARANCE = (2603, "清仓")
    """清仓"""

    OFFICIAL_REFURBISHED_BRAND = (2604, "官翻")
    """官翻"""


class SaleStatusEnum(NickedIntEnum):
    PENDING = (1, "待发布")
    """待发布"""

    ON_SALE = (2, "销售中")
    """销售中"""

    OFF_SHELF = (3, "已下架")
    """已下架"""


class ProductStatus(NickedIntEnum):
    MEMBER_DELETE = (-1, "已删除")
    """已删除"""

    PENDING_PUBLISH = (21, "待发布")
    """待发布"""

    SELLING = (22, "销售中")
    """销售中"""

    SOLD_OUT = (23, "已售罄")
    """已售罄"""

    MANUAL_OFFLINE = (31, "手动下架")
    """手动下架"""

    SOLD_OFFLINE = (33, "售出下架")
    """售出下架"""

    AUTO_OFFLINE = (36, "自动下架")
    """自动下架"""

    DEFAULT = (0, "默认值")
    """默认值"""


class StuffStatus(NickedIntEnum):
    """普通商品可用的成色"""
    NO_CONDITION = (0, "无成色")
    """无成色（普通商品可用）"""

    BRAND_NEW = (100, "全新")
    """全新"""

    ALMOST_NEW = (-1, "准新")
    """准新"""

    NINETY_NINE_NEW = (99, "99新")
    """99新"""

    NINETY_FIVE_NEW = (95, "95新")
    """95新"""

    NINETY_NEW = (90, "9新")
    """9新"""

    EIGHTY_NEW = (80, "8新")
    """8新"""

    SEVENTY_NEW = (70, "7新")
    """7新"""

    SIXTY_NEW = (60, "6新")
    """6新"""

    FIFTY_NEW = (50, "5新")
    """5新"""

    """仅品牌捡漏类型可用的成色"""
    UNUSED_MEDIUM_DEFECT = (40, "未使用·中度瑕疵")
    """未使用·中度瑕疵"""

    UNUSED_MINOR_DEFECT = (30, "未使用·轻微瑕疵")
    """未使用·轻微瑕疵"""

    UNUSED_OPENED = (20, "未使用·仅拆封")
    """未使用·仅拆封"""

    UNUSED_ALMOST_NEW = (10, "未使用·准新")
    """未使用·准新"""

    BRAND_NEW_UNUSED = (100, "全新未使用")
    """全新未使用"""


class SpecType(NickedIntEnum):
    """商品规格类型"""
    SINGLE_SPEC = (1, "单规格")
    """单规格"""

    MULTI_SPEC = (2, "多规格")
    """多规格"""
